$OpenBSD: patch-eject_Makefile,v 1.1.1.1 2013/09/17 11:21:50 sthen Exp $
--- eject/Makefile.orig	Mon Mar 12 08:46:04 2012
+++ eject/Makefile	Tue Sep 17 11:39:28 2013
@@ -8,13 +8,13 @@ MAN=
 
 gtk_CFLAGS!= pkg-config --cflags gtk+-2.0 libnotify
 gtk_LDFLAGS!= pkg-config --libs gtk+-2.0 libnotify
-CFLAGS= -W -Wall -g -O0 -I../lib $(gtk_CFLAGS)
+CFLAGS+= -W -Wall -I../lib $(gtk_CFLAGS)
 LDFLAGS= -L../lib $(gtk_LDFLAGS)
 LDADD= -ltrayapp
 
-BINDIR=/usr/local/libexec/tray-app
+BINDIR=${TRUEPREFIX}/libexec/tray-app
 
 beforeinstall:
-	if [ \! -d "$(BINDIR)" ]; then mkdir "$(BINDIR)"; fi
+	if [ \! -d "$(DESTDIR)$(BINDIR)" ]; then mkdir -p "$(DESTDIR)$(BINDIR)"; fi
 
 .include <bsd.prog.mk>
